﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="SimpleForm_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
	<style type="text/css">
		.operator
		{
			margin-right: 30px;
		}
	</style>
</head>
<body>
	<form id="form1" runat="server">
	<t:Manager runat="server">
		<Includes>
			<t:StyleFileInclude Src="~/Res/CSS/Main.css" />
		</Includes>
		<Scenarios>
			<t:PostScenario runat="server" ID="psPerform" PostControlIds="txt1,txt2,rbOperator"
				ReturnControlIds="txtR" />
		</Scenarios>
	</t:Manager>
	<div>
		<table class="form">
			<tr>
				<th>
					<t:Label runat="server" ID="lbl1" Text="Operand 1" For="txt1" />
				</th>
				<td>
					<t:TextBox runat="server" ID="txt1">
						<ValueChanged OnServer="txt1_ValueChanged" PostScenarioId="psPerform" />
					</t:TextBox>
					<t:CompareValidator runat="server" ID="cv1" ValidateEmpty="true" ValidatedControlId="txt1"
						Operator="DataTypeCheck" Type="Double" />
				</td>
			</tr>
			<tr>
				<th>
					<t:Label runat="server" ID="lbl2" Text="Operand 2" For="txt2" />
				</th>
				<td>
					<t:TextBox runat="server" ID="txt2">
						<ValueChanged OnServer="txt2_ValueChanged" PostScenarioId="psPerform" />
					</t:TextBox>
					<t:CompareValidator runat="server" ID="cv2" ValidateEmpty="true" ValidatedControlId="txt2"
						Operator="DataTypeCheck" Type="Double" />
				</td>
			</tr>
			<tr>
				<th>
					<t:Label runat="server" ID="lblOperator" Text="Operator" />
				</th>
				<td>
					<t:RadioGroup runat="server" ID="rbOperator">
						<ValueChanged OnServer="rbOperator_ValueChanged" PostScenarioId="psPerform" />
					</t:RadioGroup>
					<span class="operator">
						<t:Label runat="server" ID="lblOperatorAdd" Text="Add" For="rbOperatorAdd" />
						<t:RadioButton runat="server" ID="rbOperatorAdd" GroupId="rbOperator" />
					</span><span class="operator">
						<t:Label runat="server" ID="lblOperatorMinus" Text="Subtract" For="rbOperatorSubtract" />
						<t:RadioButton runat="server" ID="rbOperatorSubtract" GroupId="rbOperator" />
					</span><span class="operator">
						<t:Label runat="server" ID="lblOperatorMultiply" Text="Multiply" For="rbOperatorMultiply" />
						<t:RadioButton runat="server" ID="rbOperatorMultiply" GroupId="rbOperator" />
					</span><span class="operator">
						<t:Label runat="server" ID="lblOperatorDivide" Text="Divide" For="rbOperatorDivide" />
						<t:RadioButton runat="server" ID="rbOperatorDivide" GroupId="rbOperator" />
					</span>
				</td>
			</tr>
			<tr>
				<th>
					<t:Label runat="server" ID="lblR" Text="Result" For="txtR" />
				</th>
				<td>
					<t:TextBox runat="server" ID="txtR" ReadOnly="true" />
				</td>
			</tr>
		</table>
	</div>
	</form>
</body>
</html>
